﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Account_Report" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    

    <asp:Chart ID="Chart2" runat="server" DataSourceID="SqlDataSource1"  Width="900px"  >
        <Series>
              <asp:Series Name="Series1"  ChartType="Line" XValueMember="Date"  IsValueShownAsLabel="true"
                YValueMembers="Weight" YValuesPerPoint="10" XValueType="Date" YValueType="Double" IsXValueIndexed="True"  ChartArea="ChartArea1" LegendText="Weight">
            </asp:Series>
        </Series>
        <ChartAreas>
           <asp:ChartArea Name="ChartArea1" AlignmentOrientation="All">
            <AxisX><MajorGrid LineWidth="0" /></AxisX>
           <AxisY><MajorGrid LineWidth="0" /></AxisY>
           
            </asp:ChartArea>
        </ChartAreas>
        <Titles>
            <asp:Title Font="Microsoft Sans Serif, 15.75pt, style=Bold" Name="Weight" 
                Text="Weight">
            </asp:Title>
        </Titles>
    </asp:Chart>
    <br />
    <asp:Chart ID="Chart3" runat="server" DataSourceID="SqlDataSource1"  Width="900px" >
        <Series>
                <asp:Series Name="Series2" ChartType="Line" XValueMember="Date"  IsValueShownAsLabel="true" 
                YValueMembers="WaterAbsorbed" YValuesPerPoint="10" XValueType="Date" YValueType="Int64" IsXValueIndexed="True" LegendText="WaterAbsorbed">
            </asp:Series>
        </Series>
        <ChartAreas>
           <asp:ChartArea Name="ChartArea1" AlignmentOrientation="All">
            <AxisX><MajorGrid LineWidth="0" /></AxisX>
           <AxisY><MajorGrid LineWidth="0" /></AxisY>
           
            </asp:ChartArea>
        </ChartAreas>
        <Titles>
            <asp:Title Font="Microsoft Sans Serif, 15.75pt, style=Bold" Name="Title1" 
                Text="Water Absorbed">
            </asp:Title>
        </Titles>
    </asp:Chart>
    <br />
    <asp:Chart ID="Chart4" runat="server" DataSourceID="SqlDataSource1"  Width="900px" >
        <Series>
             <asp:Series Name="Series3" ChartType="Line" XValueMember="Date"  IsValueShownAsLabel="true" 
                YValueMembers="TimeExercise" YValuesPerPoint="10" XValueType="Date" YValueType="Int64" IsXValueIndexed="True"  LegendText="TimeExercise">
            </asp:Series>
        </Series>
        <ChartAreas>
           <asp:ChartArea Name="ChartArea1" AlignmentOrientation="All">
            <AxisX><MajorGrid LineWidth="0" /></AxisX>
           <AxisY><MajorGrid LineWidth="0" /></AxisY>
           
            </asp:ChartArea>
        </ChartAreas>
        <Titles>
            <asp:Title Font="Microsoft Sans Serif, 15.75pt, style=Bold" Name="Title1" 
                Text="Time Exercise(hours)">
            </asp:Title>
        </Titles>
    </asp:Chart>
    <br />
    <asp:Chart ID="Chart5" runat="server" DataSourceID="SqlDataSource1"  Width="900px" >
        <Series>
               <asp:Series Name="Series4" ChartType="Line" XValueMember="Date"  IsValueShownAsLabel="true" 
                YValueMembers="CalorieAbsorbed" YValuesPerPoint="10" XValueType="Date" YValueType="Int64" IsXValueIndexed="True" LegendText="CalorieAbsorbed">
            </asp:Series>
        </Series>
        <ChartAreas>
           <asp:ChartArea Name="ChartArea1" AlignmentOrientation="All">
            <AxisX><MajorGrid LineWidth="0" /></AxisX>
           <AxisY><MajorGrid LineWidth="0" /></AxisY>
           
            </asp:ChartArea>
        </ChartAreas>
        <Titles>
            <asp:Title Font="Microsoft Sans Serif, 15.75pt, style=Bold" Name="Title1" 
                Text="Calorie Absorbed">
            </asp:Title>
        </Titles>
    </asp:Chart>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Schedule] WHERE  [UserId]=@UserId ORDER BY [Date] ">
        <SelectParameters>
                <asp:Parameter Name="UserId" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
</asp:Content>

